<?php

namespace app\health\job;

/**
 * BaseJob 基类
 */
class BaseJob
{

    public function failed($data)
    {
        // 记录失败队列日志
        \think\Db::name('health_failed_job')->insert([
            'data' => json_encode($data),
            'createtime' => time(),
            'updatetime' => time()
        ]);
    }
}
